package com.artislong.config;

import com.artislong.service.FlightBookingService;
import org.springframework.ai.tool.ToolCallbackProvider;
import org.springframework.ai.tool.method.MethodToolCallbackProvider;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 陈敏
 * @version McpServerConfiguration.java, v 1.0 2025 04 17 11:19 chenmin Exp $
 * Created on 2025 04 17
 */
@Configuration
public class McpServerConfiguration {

    @Bean
    public ToolCallbackProvider weatherTools(FlightBookingService flightBookingService) {
        return MethodToolCallbackProvider.builder().toolObjects(flightBookingService).build();
    }

}
